import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
//后端是const Mock=require("mockjs")
//module.exports=导出的数据
//前端是import Mock=require("mockjs");
//export default导出数据
Vue.config.productionTip = false

import { vueBaberrage } from 'vue-baberrage'
Vue.use(vueBaberrage)
import Vant from 'vant';
import Video from 'video.js'
import 'video.js/dist/video-js.css'

Vue.prototype.$video = Video
import 'vant/lib/index.css';
import { Form } from 'vant';
import { Field } from 'vant';
import { Toast } from 'vant';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);
import { Button } from 'vant';
import { CountDown } from 'vant';
import { Icon } from 'vant';
import { Swipe, SwipeItem } from 'vant';
import { Cascader } from 'vant';

Vue.use(Cascader);
import { IndexBar, IndexAnchor } from 'vant';
import VueLazyload from 'vue-lazyload'
import BaiduMap from 'vue-baidu-map'
Vue.use(BaiduMap, {
  //百度地图密钥
  ak: '3XNRuwxmCxFNayTpbNCXCotrNqY05gk3'
})
Vue.use(IndexBar);
Vue.use(IndexAnchor);
import { Lazyload } from 'vant';
import { Tab, 
  Tabs } from 'vant';
  import { DropdownMenu, DropdownItem } from 'vant';

  Vue.use(DropdownMenu);
  Vue.use(DropdownItem);
Vue.use(Tab);
Vue.use(Tabs);
Vue.use(Lazyload);
// 注册时可以配置额外的选项
Vue.use(VueLazyload, {
  preLoad: 1.3,
  loading: "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Finews.gtimg.com%2Fnewsapp_match%2F0%2F10559394992%2F0.jpg&refer=http%3A%2F%2Finews.gtimg.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1631436187&t=6631193e1a66b71441b24c032d75af10",
  attempt: 1
})
Vue.use(Swipe);
Vue.use(SwipeItem);
Vue.use(Icon);
Vue.use(CountDown);
Vue.use(Button);
Vue.use(Toast);
Vue.use(Form);
Vue.use(Field);
Vue.use(Vant);
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
